package com.two.common.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.two.common.entity.Restaurant;
import io.swagger.models.auth.In;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;


@Data
@NoArgsConstructor
@AllArgsConstructor
public class Menu {
    //mid是字段的主键，
    @TableId(value = "mid")
    private String mid;
    private String dishName;
    private String price;
    private String unit;
    private Integer number;
    private Integer cid;
    @TableField(fill = FieldFill.INSERT)
    private Integer status;
    private String menuImg;
    private String instroduce;
    private String disPrice;
    private Integer rid;
    //逻辑删除
    @TableLogic
    @TableField(fill = FieldFill.INSERT)
    private Integer tai;

    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime requesttime;

    @TableField(fill = FieldFill.UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime checktime;

    @TableField(exist = false)
    private Restaurant restaurant;
    private String usermonicker;
    private String bohui;
    @TableField(exist = false)
    private Cookstyle cookstyle;
    @TableField(exist = false)
    private User user;
    @TableField(exist = false)
    private List<Pinglun> pinglunList;


}
